<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>欢迎登录</title>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <script src="./jquery.min/jquery.min.js"></script>
    <script src="./bootstrap/js/bootstrap.min.js"></script>
    <script src="./jquery.min/jquery.min.js"></script>
    <style>
        li {
            list-style: none;
        }

        a {
            text-decoration: none;
            color: #fff;
        }

        body {
            position: relative;
            height: 100%;
            /* background-color: rgb(32, 235, 99); */
            border-radius: 60%;
            background-image: linear-gradient(to right, blue, red);
        }

        .main-bg {

            width: 500px;
            margin: 0 auto;
            height: 100%;
            padding-top: 5%;
            padding-bottom: 5%;
            /* background-image: url(./imgs/6.jpg); */
            background-repeat: no-repeat;
            background-size: 100%;
            background-image: linear-gradient(to bottom right, rgb(157, 12, 241), rgba(250, 7, 7, 0.349))
        }

        .img {
            max-width: 700px;
            width: 18rem;
            height: 18rem;
            margin: 50px auto;
            border-radius: 50%;
            overflow: hidden;
            margin-bottom: 22px !important;
            margin-top: 0 !important;
            box-shadow: 3px 3px 10px rgb(243, 120, 20);
        }

        .img img {
            cursor: pointer;
            width: 100%;
        }

        .t-img {
            position: absolute;
            width: 5vw;
        }

        .t-img img {
            width: 100%;
        }

        .font {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 103px;
            height: 50px;
            color: rgb(175, 130, 149);
            margin: 0 auto;
            border-radius: 50%;
            font-size: 5rem;
            box-shadow: 1px 1px 9px rgb(248, 68, 128);
            overflow: hidden;
            cursor: pointer;
            background-image: linear-gradient(to right, blue, red)
        }

        .dlu {

            width: 100px;
            cursor: pointer;
            text-align: center;
            margin: 35px auto;
            font-size: 16px;
            color: #fff;
            font-weight: bold;
            border: 1px solid rgb(249, 248, 250);
            border-radius: 10px;
        }

        .dlu:hover {
            border-color: rgb(76, 197, 245);
        }

        .dlu a:hover {
            color: rgb(28, 210, 241);
        }

        .dlu a {
            color: #fff;
            text-decoration: none;
        }

        .progress {
            cursor: pointer;
            display: none;
            margin-top: 40px;
        }

        .progress-bar {
            background-image: linear-gradient(to right, blue, red);
        }

        .floot {
            position: absolute;
            bottom: -165px;
            left: 0;
            width: 100vw;
        }

        .floot ul {
            width: 100%;
            display: flex;
            justify-content: space-around;
        }

        .floot ul li {
            color: #fff;
            font-size: 16px;
            font-weight: bold;
        }

        .floot ul li a:hover {
            color: rgb(45, 177, 230);
        }
    </style>
</head>

<body>
    <div class="main-bg">
        <div class="img">
            <img src="./imgs/img (4).jpg" alt="">
        </div>
        <div class="font">
            <div class="glyphicon glyphicon-ok-sign logo">
            </div>
        </div>
        <p class="dlu">
            <a href="javascript:;">一 键 登 录</a>
        </p>

        <div class="progress">
            <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100">
            </div>
        </div>
        <div class="floot">
            <ul>
                <li><a href="javascript:;">服务条款</a></li>
                <li><a href="javascript:;">隐私政策</a></li>
                <li><a href="javascript:;">版权声明</a></li>
                <li><a href="javascript:;">了解更多</a></li>
            </ul>
        </div>

    </div>
    <script>
        $(".img img").on({
            mouseenter: function () {
                var timer = setInterval(function () {
                    $(".img img").stop().css("transform", "scale(1.2,1.2)");
                    $(".img img").stop().css("transition", ".4s");
                    clearInterval(timer);
                }, 100)
            },
            mouseleave: function () {
                $(".img img").stop().css("transform", "scale(1,1)");
            },
            click: function () {

            }
        });
        var val = 0;
        var flag = 0;
        var s = 0;
        var ti;
        var c = 0;
        $(".dlu").on({

            click: function () {
                clearInterval(ti)
                if (flag == 1) {
                    clearInterval(timers);
                    $(".progress").show();
                    var width = $(".progress-bar")
                    var timers = setInterval(function () {
                        val += 15;
                        if (val <= 560) {
                            $('.progress-bar').text(Math.ceil(val / 5.6) + '%')
                            $('.progress-bar').css("width", val);
                        } else {
                            clearInterval(timers);
                            window.location.href = "./index.html"
                        }
                    }, 100)
                    $(".font").off("click");
                } else {
                    ti = setInterval(function () {
                        $(".font").css("color", "red")
                        if (s == 0) {
                            $(".font").css("transform", "scale(1,1)");
                            $(".font").css("transition", ".2s");
                            s++;
                        } else {
                            $(".font").css("transform", "scale(.9,.9)");
                            $(".font").css("transition", ".2s");
                            s--;
                        }

                    }, 200)
                }

            }
        });
        $(".font").on({
            click: function () {
                if (c == 0) {
                    $('.logo').css("color", "#FFF");
                    c++;
                    flag++;
                } else {
                    $('.logo').css("color", "rgb(175, 130, 149)");
                    c--;
                    flag--;
                }
                clearInterval(ti);

            }
        })
    </script>
</body>

</html>